package org.fangzz.cameramgr.cameramonitor.service.impl;

import org.fangzz.cameramgr.cameramonitor.model.City;
import org.fangzz.cameramgr.cameramonitor.repository.CityRepository;
import org.fangzz.cameramgr.cameramonitor.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * created By XxChen 2018/6/22
 */



@Service
public class CityServiceImpl implements CityService {
    @Autowired
    CityRepository cityRepository;

    @Override
    public List<City> findByProvinceCode(String provinceCode) {
        return cityRepository.findByProvinceCode(provinceCode);
    }
}
